﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;

namespace WindowsFormsApplication1
{
    static class Program
    {
        public static MapEditor mainWindow;
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            mainWindow = new MapEditor();
            Application.Run(mainWindow);
            Properties.Settings.Default.Save();
        }
    }

    static class CONST
    {
        public static String IMAGEFILTER
        {
            get
            {
                return Properties.Resources.Filter_Image;
            }
        }
        public static String XMLFILTER
        {
            get
            {
                return Properties.Resources.Filter_XML;
            }
        }

        public static String BMPDIVIDEBY16
        {
            get
            {
                return Properties.Resources.BmpError;
            }
        }

        public static String TERRAINPATH
        {
            get
            {
                return Properties.Resources.Path_Terrain;
            }
        }

        public static String MAPPATH
        {
            get
            {
                return Properties.Resources.Path_Map;
            }
        }

        public static String BACKGROUNDPICPATH
        {
            get 
            {
                return Properties.Resources.Path_Background;
            }
        }

        public static String BMPTOOBIG
        {
            get
            {
                return Properties.Resources.BmpTooBig;
            }
        }

        public static String ROOTPATH
        {
            get
            {
                return Properties.Settings.Default.RootPath + "\\";
            }
            set
            {
                Properties.Settings.Default.RootPath = value;
            }
        }

    }

}
